package com.jic.purchase.mapper;

import com.jic.purchase.model.entity.ContractPerson;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ContractPersonMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ContractPerson record);

    int insertSelective(ContractPerson record);

    ContractPerson selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ContractPerson record);

    int updateByPrimaryKey(ContractPerson record);

    void deleteByContractId(@Param("contractId") Long id);

    void insertBatch(@Param("contractPersonList") List<ContractPerson> contractPersonList,@Param("contractId") Long id);

    List<ContractPerson> queryListByContractId(@Param("contractId") Long id);
}